package cloud.ben.smallscalepigfarmmanagementsystem.service.fodder;

import cloud.ben.smallscalepigfarmmanagementsystem.entity.drug.Drug;
import cloud.ben.smallscalepigfarmmanagementsystem.entity.fodder.Fodder;
import cloud.ben.smallscalepigfarmmanagementsystem.utils.RespBean;

/**
 * @Author: Ben
 * @Date: 2022/3/30 11:24
 */
public interface IFodderService {

    /**
     * 增加饲料信息
     * @param fodder
     * @return RespBean
     */
    RespBean insertFodder(Fodder fodder);

    /**
     *根据id删除饲料信息
     * @param id
     * @return RespBean
     */
    RespBean deleteFodder(Integer id);

    /**
     * 修改饲料信息
     * @param fodder
     * @return RespBean
     */
    RespBean updateFodder(Fodder fodder);

    /**
     * 分页查询饲料信息
     * @param pageNumber
     * @param pageSize
     * @return RespBean
     */
    RespBean selectFodderByPage(Integer pageNumber,Integer pageSize);


    /**
     *查询饲料数量（方便分页）
     * @return RespBean
     */
    RespBean selectFodderNum();
}
